<template>
    <scroll-view class="scroll-view" scroll-y="true" @scrolltolower="scrolltolower">
        <view class="wai">
            <view class="top">
                <view class="top1">名称</view>
                <view class="top1">时间</view>
                <view class="top1">返现金额</view>
            </view>
            <view class="shop-list" v-for="it in 20">
                <view class="">商品消费</view>
                <view class="sj">2024-08-12 14:20:50</view>
                <view class="mony">+20</view>
            </view>
        </view>
    </scroll-view>
</template>

<script setup>
const scrolltolower = () => {
    console.log('滚动到底部加载下一页');
};
</script>

<style lang="scss" scoped>
.scroll-view {
    .wai {
        .shop-list {
            .sj {
                color: #999999;
                font-size: 24rpx;
            }
            .mony {
                font-size: 40rpx;
                color: #ff0000;
                margin-right: 40rpx;
            }
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 96rpx;
            border-bottom: 2rpx solid #f5f5f5;
        }
        .top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 12rpx;
            color: #999999;
            margin-bottom: 16rpx;
        }
        padding: 0 28rpx;
        padding-bottom: 100rpx;
    }
    height: 100vh;
}
</style>
